package byName;

import java.util.ArrayList;


public class Tourist extends Human{
	
	Tourist(String name, int age){
		this.name = name;
		this.age  = age;
		workBehavior = new WorkTourist();
	}

	@Override
	public void display() {
		System.out.println("My name is " + name + " and I'm " + age + " years");
	}

	@Override
	public void getCountAnimal(ArrayList<Animal> animal) {
		if (animal.size()-2>0){
		System.out.println("I counted "+ (animal.size() - 2) + " animals");
		}else{
		System.out.println("I counted " + animal.size() +  " animals");
		}
		
	}
	
	
}
